package com.weitu.threeSimultaneities.safe.service;

import com.weitu.threeSimultaneities.safe.entity.Safe;

import java.util.List;
import java.util.Map;

public interface SafeService {

    //根据Id选择
    Safe selectByPrimaryKey(String id);

    //删除
    int deleteByPrimaryKey(String id);
    int deleteByPrimaryKeyH(String id);
    int deleteByPrimaryKeyF(String id);
    //更新
    int updateByPrimaryKeySelective(Map paramMap);

    //新增安全专业主数据
    int insertSelective(Map paramMap);
    int insertSelectiveH(Map paramMap);
    int insertSelectiveF(Map paramMap);
    //根据projectID查询
    Safe selectByProjectId(String id);

    //根据projectID判断是否存在安全专业数据
    boolean exsitSafeSpecailty(String id);
    boolean exsitSafeSpecailtyH(String id);
    boolean exsitSafeSpecailtyF(String id);
    //获取分页数据
    List<Safe> selectByParam(Map paramMap);
    List<Safe> selectByParamH(Map paramMap);
    List<Safe> selectByParamF(Map paramMap);
    //获取总数
    int selectCount(Map paramMap);
    int selectCountH(Map paramMap);
    int selectCountF(Map paramMap);
}